<header class="nav-type-2">
  <nav class="navbar navbar-static-top">
    <div class="navigation">
      <div class="container">
        <div class="row">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
            <!-- Logo -->
            <div class="logo-container">
              <div class="logo-wrap local-scroll"> <a href="/"> <img class="logo" src="/skin/images/logo.png" alt=""> </a> </div>
            </div>
          </div>
          <!-- end navbar-header -->
          
          <div class="col-md-9 nav-wrap">
            <div class="collapse navbar-collapse" id="navbar-collapse">
              <ul class="nav navbar-nav navbar-right">
                <li {dede:field name=typeid runphp="yes"}(@me=="")? @me="class='active'":@me="";{/dede:field}> <a href="/">网站首页</a></li>
                {dede:channelartlist row=10 typeid='top'}
				<li {dede:field name=typeid runphp="yes"}
    global $dsql;
    $sql = "SELECT id From `#@__arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
    $row = $dsql->GetOne($sql);
    @me=is_array($row)?'class="dropdown open"':'';
    {/dede:field}> <a href="{dede:field name='typeurl'/}" {dede:field name=typeid runphp="yes"}
    global $dsql;
    $sql = "SELECT id From `#@__arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
    $row = $dsql->GetOne($sql);
    @me=is_array($row)?'data-toggle="dropdown" aria-expanded="true"':'';
    {/dede:field}>{dede:field name='typename'/}</a>
                {dede:field name=typeid runphp="yes"}
    global $dsql;
    $sql = "SELECT id From `#@__arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
    $row = $dsql->GetOne($sql);
    @me=is_array($row)?'
                  <ul class="dropdown-menu">
                  ':'';
      {/dede:field}
                    {dede:channel type='son' noself='yes'}
					<li><a href="[field:typelink/]">[field:typename/]</a></li>
					{/dede:channel}
                  {dede:field name=typeid runphp="yes"}
      global $dsql; $sql = "SELECT id From `#@__arctype` WHERE reid='@me' And ishidden<>1 order by
      sortrank asc limit 0, 100 ";
      $row = $dsql->GetOne($sql);
      @me=is_array($row)?'
    </ul>
    ':'';
    {/dede:field}
                </li>
                {/dede:channelartlist}
              </ul>
            </div>
          </div>
          <!-- end col --> 
        </div>
        <!-- end row --> 
      </div>
      <!-- end container --> 
    </div>
    <!-- end navigation --> 
  </nav>
  <!-- end navbar --> 
</header><!-- end navigation -->
<div class="clear"></div>